studiocms
Version:
Astro Native CMS for AstroDB. Built from the ground up by the Astro community.
24 lines (23 loc) • 1.09 kB
TypeScript
import type { APIContext } from 'astro';
import { Effect } from '../../../../../effect.js';
/**
* Creates a standardized HTTP response for authentication provider errors.
*
* @param error - The error message to include in the response body.
* @param status - The HTTP status code for the response.
* @returns A `Response` object with a JSON body containing the error message and the specified status code.
*/
export declare const ProviderResponse: (error: string, status: number) => Effect.Effect<Response, never, never>;
declare const OAuthAPIEffect_base: Effect.Service.Class<OAuthAPIEffect, "OAuthAPIEffect", {
readonly effect: Effect.Effect<{
initSession: (context: APIContext) => Effect.Effect<Response, Error, never>;
initCallback: (context: APIContext) => Effect.Effect<Response, Error, never>;
}, never, never>;
}>;
export declare class OAuthAPIEffect extends OAuthAPIEffect_base {
/**
* Main Dependencies Provider
*/
static Provide: <A, E, R>(self: Effect.Effect<A, E, R>) => Effect.Effect<A, E, Exclude<R, OAuthAPIEffect>>;
}
export {};